package com.csproj.system.service.mapper;



import com.csproj.siiat.service.mapper.EntityMapper;
import com.csproj.system.domain.AuthorityInfo;
import com.csproj.system.domain.RoleInfo;
import com.csproj.system.service.dto.RoleInfoDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * Mapper for the entity RoleInfo and its DTO RoleInfoDTO.
 */
@Mapper(componentModel = "spring", uses = {AuthorityInfoMapper.class, })
public interface RoleInfoMapper extends EntityMapper<RoleInfoDTO, RoleInfo> {




    default AuthorityInfo fromId(String id) {
        if (id == null) {
            return null;
        }
        AuthorityInfo authorityInfo = new AuthorityInfo();
        authorityInfo.setId(id);
        return authorityInfo;
    }
}
